from info.modules.index import  index_blue
from info import  redis_store
import logging
from flask import request, render_template, current_app


@index_blue.route('/')
def hello_world():
    redis_store.set("name","23")
    logging.debug("redis xinxi %s"%redis_store.get("name"))
    logging.info("redis xinxi %s"%redis_store.get("name"))
    # session["name"]="guotao"
    # print(session.get("meng"))
    #
    data= {"category_list":[1,2,3],}
    return render_template("news/index.html",data=data)

#logo
@index_blue.route('/favicon.ico')
def login():
    return current_app.set_static_file("news/favicon.ico")
